package com.cuitrip.business.tripservice.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.cuitrip.business.comment.ReviewInfo;
import com.cuitrip.business.user.model.CtUserInfo;
import com.cuitrip.component.Label;

import java.io.Serializable;
import java.util.List;

public class ServiceDetail implements Serializable{
    private static final long serialVersionUID = -2464737498004712125L;
    private ReviewInfo reviewInfo;
    private CtUserInfo userInfo;
    private ServiceInfo serviceInfo;
    @JSONField(name = "beLikedInfo")
    private FavInfo favInfo;
    public int isLike;
    public ReviewInfo getReviewInfo() {
        return reviewInfo;
    }

    public void setReviewInfo(ReviewInfo reviewInfo) {
        this.reviewInfo = reviewInfo;
    }

    public CtUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(CtUserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public ServiceInfo getServiceInfo() {
        return serviceInfo;
    }

    public void setServiceInfo(ServiceInfo serviceInfo) {
        this.serviceInfo = serviceInfo;
    }

    public int getIsLike() {
        return isLike;
    }

    public void setIsLike(int isLike) {
        this.isLike = isLike;
    }

    public FavInfo getFavInfo() {
        return favInfo;
    }

    public void setFavInfo(FavInfo favInfo) {
        this.favInfo = favInfo;
    }

    public boolean isFav(){
        if (0 == isLike){
            return false;
        }
        return true;
    }
}
